@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
@import "./icon/iconfont.css";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}
* {
  scrollbar-width: none;
}

// ::-webkit-scrollbar {
//   display: none; /* Chrome Safari */
// }

* {
  &::-webkit-scrollbar-track-piece {
    // background: #299dc8;
    border-radius: 20px;
  }

  &::-webkit-scrollbar {
    width: 6px;
    border-radius: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #299dc8;
    border-radius: 20px;
  }
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
.dx-header-container {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  box-sizing: border-box;
  padding: 0 10px;
  & > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  & > div > span {
    margin-left: 10px;
    letter-spacing: 2px;
    min-width: 200px;
  }
  .el-icon-close {
    transition: all 0.6s;
    transform: scale(1);
    cursor: pointer;
  }
  .el-icon-close:hover {
    transform: scale(2);
    color: #ffa500;
  }
}

.list-line-icon {
  width: 30px;
  text-align: center;
  i {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    text-align: center;
    line-height: 16px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    color: #fff;
    background-color: transparent;
    transform: scale(0.8);
  }
  i:hover {
    transform: scale(0.9);
    border: 1px solid #ffa500;
    background-color: #ffa500;
  }
}
.active-project {
  border: 1px solid #ffa500 !important;
}
.dx-body-container {
  width: 100%;
  flex: 1;
  box-sizing: border-box;
  overflow: hidden;
  overflow-y: auto;
  font-size: 14px;
  .list-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-height: 40px;
    font-size: 13px;
    background-color: rgba(24, 116, 205, 0.18);
    margin-bottom: 10px;
    // padding: 0 10px;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid transparent;
    .list-index {
      min-width: 20px;
      text-align: center;
      margin-right: 10px;
    }
    .list-checkbox {
      width: 40px;
      box-sizing: border-box;
    }
    .list-body {
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      flex: 1;
      .list-line {
        height: 30px;
        line-height: 30px;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        .list-line-name {
          width: 160px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .list-line-lable {
          width: 50%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
    &:hover {
      color: #ffa500;
      border-color: #ffa500;
    }
  }
}
.dx-footer-container {
  width: 100%;
  height: 40px;
  min-height: 40px;
}
.dx-muen-container {
  position: relative;
  top: 140px;
  height: calc(100vh - 150px - 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #299dc8;
  // background-color: rgba(24, 116, 205, 0.18);
  background-color: rgba(24, 116, 205, 0.18);
  box-sizing: border-box;
  box-shadow: 0 0 6px #00b2ee, 0 0 2px #009acd inset;
  background-image: url("../assets/homeImg/cc.png");
  background-size: 100% 100%;
  // padding: 0 10px;
  box-sizing: border-box;
  box-shadow: 0 0 6px #00b2ee, 0 0 2px #009acd inset;
}
.dx-menu-lists {
  position: relative;
  left: 2px;
  min-height: 120px;
  width: 330px;
  z-index: 1000;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  .menu-lists-body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    & > div {
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 64px;
      height: 70px;
      margin: 8px;
      padding: 5px;
      .tools-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
        overflow: hidden;
        text-align: center;
        border: 1px solid transparent;
        border-radius: 50%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        i {
          transition: all 0.6s;
          transform: scale(1);
        }
      }
      & > span {
        margin-top: 4px;
        font-size: 12px;
      }
    }
    // & > div:hover {
    // }
  }
}

.muen-active, .muen-active-hover:hover {
  box-shadow: 0 0 4px #fff, 0 0 2px #fff inset;
  border-radius: 4px;
  .tools-icon {
    i {
      transform: scale(1.4);
    }
  }
}
.el-input__inner {
  color: #fff;
}
.el-input__inner:focus {
  border-color: #fff !important;
}
.dx-detail-container {
  position: relative;
  left: 2px;
  flex: 1;
  width: 330px;
  z-index: 1001;
  background-size: 100% 100%;
  border-radius: 4px;
  padding: 0 10px;
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.dx-info-container {
  position: fixed;
  top: 15px;
  right: 35px;
  bottom: 40px;
  flex: 1;
  width: 330px;

  // height: 100vh;
  z-index: 2000;
  background-size: 100% 100%;
  border-radius: 4px;
  padding: 0 10px;
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  border-radius: 6px;
  border: 1px solid #299dc8;
  background-color: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  box-shadow: 0 0 6px #00b2ee, 0 0 2px #009acd inset;
  background-image: url("../assets/homeImg/cc.png");
  background-size: 100% 100%;
  box-sizing: border-box;
  box-shadow: 0 0 6px #00b2ee, 0 0 2px #009acd inset;
}

.menu-contraction {
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.6s;
  &:hover {
    transform: rotate(-180deg) scale(1.8);
    color: #ffa500;
  }
}
